<?php

$form = $this->beginWidget ( 'bootstrap.widgets.TbActiveForm', array (
		'id' => 'transference-form',
		'enableAjaxValidation' => false 
) );

$photo = Utils::getPlayerPhoto ( $model->player0 );
?>

	<?php echo $form->errorSummary($model); ?>
	<?php echo '<h5 style="color: #b94a48;">'.$message .'</h5>'; ?>
<br>

<table>
	<tr>
		<td style="min-width: 480px;">
			<div style="font-size: 16px;"><?php echo 'Nome: '. $model->player0->name;?></div><br>
			<div style="font-size: 16px;"><?php echo 'Idade: '. Utils::getAge(Utils::changeDate($model->player0->birthy_date));?></div><br>
			<div style="font-size: 16px;"><?php echo 'Time Atual: '. $model->teamOwner->name;?></div><br>
		</td>
		<td>
	<?php echo CHtml::image(Utils::findImageUrl($photo[0]->filename),$model->player0->name,array('width'=>120,'height'=>150)); ?>
	</td>
	</tr>
</table>

	<?php echo $form->textFieldRow($model,'price',array('class'=>'span1')); echo ' R$';?> 

	<?php echo $form->textAreaRow($model,'observation',array('class'=>'span8','maxlength'=>250)); ?>
	
<div class="form-actions" align="center">
		<?php
		
$this->widget ( 'bootstrap.widgets.TbButton', array (
				'buttonType' => 'submit',
				'type' => 'primary',
				'label' => 'Confirmar Transferência' 
		) );
		?>
	</div>

<?php $this->endWidget(); ?>
